decorative banner

Layer property attributes and methods


    Property [2 or 3] anchorPoint Returns the anchor point value of the layer in the layer's space.

    Property [2 or 3] position Returns the position value of the layer, in world space if the layer has no parent, or in the parent's layer space if there is a parent.

    Property [2 or 3] scale Returns the scale value of the layer, expressed as a percentage.

    Property rotation Returns the rotation value of the layer in degrees. For a 3D layer, it returns the z rotation value in degrees.

    Property [1] opacity Returns the opacity value for the layer, expressed as a percentage.

    Property [2] audioLevels Returns the value of the Audio Levels property of the layer, in decibels. This is a 2D value; the first value represents the left audio channel, and the second value represents the right. The value is not the amplitude of the source material's audio track; instead, it is the value of the keyframed Audio Levels property.

    Property timeRemap Returns the value of the Time Remap property in seconds, if Time Remap is enabled.

    Marker Number marker.key(index) {index is a number} Returns the value of the Marker Number property for a layer. The only methods and attributes available from marker are key(), nearestKey, and numKeys.

    Marker Number marker.key("name") {name is a string} Returns the name of the Marker Number property for a layer. The name is the name of the marker, as typed in the comment field in the marker dialog box, for example, marker.key("ch1"). The value for marker keys is a string, not a number. For example, m1 = marker.key("Start").time; m2 = marker.key("End").time; linear(time, m1, m2, 0, 100);

    Marker Number marker.nearestKey Returns the value for the marker which is nearest to the current time.

    Number marker.numKeys Returns the total number of layer markers.

    String name Returns the name of the layer.

    Note: When you add masks, effects, paint, or text, or apply motion tracker to a layer, After Effects adds new properties to the Timeline window. There are too many of these properties to list here, so use the pick whip to learn the syntax for referring to them in your expressions. For any of the levels that represent groups of properties, you can use the .name and .numEntries properties to return the user-specified name and the number of entries in the group. For example, text("Animators").numEntries returns the number of animators on your text layer.